package org.redmagic.agent.location;

import javax.annotation.Nonnull;
import javax.annotation.ParametersAreNonnullByDefault;

import org.redmagic.location.Location;
import org.redmagic.location.LocationParser;
import org.w3c.dom.Element;

/**
 * The {@link DomLocationParser} interface is to be used
 * when converting a {@link Document} object into a {@link Location}
 * object.
 * 
 * @author sean
 *
 */
@ParametersAreNonnullByDefault
public interface DomLocationParser extends LocationParser<Element> {

    String URI_ATTRIBUTE = "uri";
    
    @Nonnull
    Location parse(Element locationElement);
}